package com.nzw.pojo.integral;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by yinwx on 2018\4\16 0016.
 * 积分规则
 */
@Table(name = "t_integralrule")
public class IntegralRule {

    private Long id;
    private Long companyId;
    private String oilCode;
    private Date startDate;
    private Date endDate;
    private Double rate;
    private Long shopId;            //门店id
    private Boolean isMoney;        //是否按钱计算积分
    private Long memberGroup;       //积分规则会员组
    private Boolean del;              //



    @Column(name = "shopId")
    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    @Column(name = "del")
    public Boolean getDel() {
        return del;
    }

    public void setDel(Boolean del) {
        this.del = del;
    }

    @Column(name = "isMoney")
    public Boolean getIsMoney() {
        return isMoney;
    }

    public void setIsMoney(Boolean money) {
        this.isMoney = money;
    }

    @Column(name = "companyId")
    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "oilCode")
    public String getOilCode() {
        return oilCode;
    }

    public void setOilCode(String oilCode) {
        this.oilCode = oilCode;
    }


    @Column(name = "startDate")
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @Column(name = "endDate")
    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @Column(name = "rate")
    public Double getRate() {
        return rate;
    }

    public void setRate(Double rate) {
        this.rate = rate;
    }


//    @Column(name = "shopId")
//    public Long getShopId() {
//        return shopId;
//    }
//
//    public void setShopId(Long shopId) {
//        this.shopId = shopId;
//    }

    @Column(name = "memberGroup")
    public Long getMemberGroup() {
        return memberGroup;
    }

    public void setMemberGroup(Long memberGroup) {
        this.memberGroup = memberGroup;
    }

    @Override
    public String toString() {
        return "IntegralRule{" +
                "id=" + id +
                ", companyId=" + companyId +
                ", oilId=" + oilCode +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", rate=" + rate +
                '}';
    }
}
